<template>
    <div class="report">
        <h3 style="border-bottom: 2px solid black;">社保报表</h3>
        <div>
            <Reporttable :ReportTable="ReportTable" />
        </div>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import Reporttable from '@/components/Social/Reporttable.vue';
import { getSocialTable } from '@/api/Socialtable'
import { useRoute } from 'vue-router'
const route = useRoute()
let ReportTable: any = ref([])
let yearMonth = String(route.query.yearMonth)
getSocialTable(yearMonth).then(res => {
    ReportTable.value = res.data.data;
}).catch(err=>{
    console.log(err)
})
</script>

<style scoped>
@import '@/assets/Report.css';
</style>